package com.yzyz.bean.scenic;

import java.util.Date;

import com.yzyz.bean.BaseBean;


/**
 * 景区图片
 * @author David Sun
 * @Date   2010-3-28
 *
 */
public class PictureBean extends BaseBean {
	private static final long serialVersionUID = 3430803870993382757L;
	
	private byte[] contents;
	
	private Date date = null;
	
	private int ownerId;//拥有者
	
	private String description;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public byte[] getContents() {
		return contents;
	}

	public void setContents(byte[] contents) {
		this.contents = contents;
	}
	
	public PictureBean(PictureBean picture){
		this.available = picture.isAvailable();
		this.contents = picture.getContents();
		this.date = picture.getDate();
		this.description = picture.getDescription();
		this.id = picture.getId();
		this.level = picture.getLevel();
		this.name = picture.getName();
		this.ownerId = picture.getOwnerId();
	}
	
	public PictureBean(){
		super();
	}
}
